﻿// Copyright (c) Inossem. All rights reserved.
// Licensed under the LGPL-3.0 license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DWF.Studio.Project
{
    /// <summary>
    /// 工程依赖包节点
    /// </summary>
    internal class ProjectPackage : ProjectNode
    {
        /// <summary>
        /// Id
        /// </summary>
        public string Id
        {
            set;
            get;
        }

        /// <summary>
        /// 版本
        /// </summary>
        public string Version
        {
            set;
            get;
        }

        /// <summary>
        /// 目标框架
        /// </summary>
        public string TargetFramework
        {
            set;
            get;
        }

        private static readonly Uri _fileIcon = new Uri("..\\Resources\\Treeview\\package.png", UriKind.Relative);

        public ProjectPackage(bool isSelf = false)
        {
            this.IconLoc = _fileIcon;
            this.NodeType = EProjectNodeType.Package;
            this.IsSelf = isSelf;
        }

        public override ObservableCollection<ProjectNode> Children
        {
            get
            {
                return null;
            }
            set
            {
                throw new NotSupportedException();
            }
        }
    }
}
